<?php
/**
 * 室内设计
 * User: tengyu
 * Date: 2017/10/13
 */?>
@extends('common.common')
@section('title','室内设计')
@section('css')
    <link rel="stylesheet" href="{{url('/css/interior_design.css')}}">
@endsection
@section('js')
    <script>
        function interior_submit()
        {
            var design_name=$("input[name='design_name']").val();
            if(!design_name){
                alert('请填写装修类别!');return false;
            }
            var design_type=$("input[name='design_type']").val();
            if(!design_type){
                alert('请填写室内设计样式!');return false;
            }
            var design_space=$("input[name='design_space']").val();
            if(!design_space){
                alert('请写上您的空间大致面积!');return false;
            }
            var design_amount=$("input[name='design_amount']").val();
            if(!design_amount){
                alert('请写上您的预算!(单位是元)');return false;
            }
            var design_require=$("#design_require").val();
            if(!design_require){
                alert('请简单描述您的需求!');return false;
            }
            return true;
        }
    </script>
@endsection
@section('content')
    <div id="content">
        <div class="row">
            @include('common.centernav')
            <div class="container">
                @if (count($errors) > 0)
                    <div class="alert alert-danger text-left">
                        <strong>室内设计需求信息录入反馈!</strong>
                        <ul>
                            @if(is_object($errors))
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            @else
                                <li>{{$errors}}</li>
                            @endif
                        </ul>
                    </div>
                @endif
                <div class="Ft">
                    <p>室内设计</p>
                </div>
                <div class="Lb">
                    <!--轮播-->
                    <div id="carousel">
                        <div id="carousel_pic" class="carousel slide" data-ride="carousel" data-interval="3000">
                            <div class="carousel-inner">
                                <div class="item active">
                                    <img style="width: 100%;" src="img/interior1.png">
                                </div>
                                <div class="item">
                                    <img src="img/interior1.png">
                                </div>
                                <div class="item">
                                    <img src="img/interior1.png">
                                </div>
                            </div>
                        </div>
                    </div>
                    <form class="form-control myform form-horizontal" action="{{url('/interior_design_data')}}" method="post" onsubmit="return interior_submit()">
                        {!! csrf_field() !!}
                        <div class="control-group">
                            <p class="text-center cff head_title">空间设计</p>
                            <p class="text-center cff">提前预约 , 可以领取xxx元搬家红包</p>
                            <p class="text-center cff o">完全化的“私人订制”</p>
                            <div class="formtable clearfix">
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="design_name" value="" placeholder="工装/家装" maxlength="10">
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="design_type" value="" placeholder="风格类型" maxlength="20">
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="design_space" value="" placeholder="空间面积" maxlength="10">
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-xs-6">
                                    <div class="input-group w100">
                                        <input type="text" class="" name="design_amount" placeholder="预算报价" maxlength="10">
                                    </div>
                                </div>
                                <div class="col-lg-12 col-md-12 col-xs-12">
                                    <textarea class="writeTool" id="design_require" name="design_require" value="" rows="" cols="" placeholder="请告诉我们，您的具体空间设计需求"></textarea>
                                </div>
                                <div class="col-lg-12 col-md-12 col-xs-12">
                                    <input type="submit" class="submit  btn btn-primary" value="提交我们的订制需求"/>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
